// 全局修改elementui 样式
.el-input__inner {
	background: $-v-color-white;
	border: 1px solid #3a404d;
	color: #ffffff;
}

.el-input-group__prepend {
	background: #191c34;
	border: 1px solid #3a404d;
}

.el-input-group__append {
	text-align: center;
	width: 50px !important;
	padding: 0px !important;
	background: rgba(255, 255, 255, 0.2);
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #fff;
}

.el-select,
.el-date-picker,
.el-date-editor {
	width: 100%;
}

.el-select-dropdown {
	background: #191c34;
	border: 1px solid rgba(58, 125, 255, 0.2);
}

.el-select-dropdown__item {
	font-family: PingFang SC;
	font-size: 12px;
	font-weight: normal;
	color: #ffffff;
}

.el-select-dropdown.el-popper ul.el-select-dropdown__list li.hover {
	background: rgba(255, 255, 255, 0.1);
}

// checkbox
.el-checkbox__inner {
	background-color: rgba(210, 222, 235, 0.1);
	border: 1px solid #D2DEEB;
}

// radio
.el-radio__inner {
	background-color: rgba(210, 222, 235, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.6);
}

.el-radio__label {
	color: rgba(255, 255, 255, 0.9);
}

.el-radio__label,
.el-radio__input.is-checked:not(.is-disabled)+.el-radio__label {
	color: rgba(255, 255, 255, 0.9) !important;
}


// 解决表格表头checkbox未对齐
.el-table__header-wrapper {
	thead {
		th {
			&:first-child {
				.el-checkbox {
					margin-left: 5px;
				}
			}
		}
	}
}

// 文本框
.el-textarea {
	.el-textarea__inner {
		background: $-v-color-white;
		border: 1px solid #3a404d;
		color: #ffffff;
	}

	.el-input__count {
		// background: $-v-color-white !important;
		background: transparent !important;
	}
}

// 日期面板
.el-picker-panel {
	color: #ffffff;
	background: #191C34;
	border: 1px solid rgba(58, 125, 255, 0.2);
}

.el-date-editor .el-range-input {
	background-color: transparent;
	color: #ffffff;
}

// 时间
.el-time-panel {
	background: #191C34 !important;
}

.el-time-spinner__item {
	color: rgb(192, 196, 204);
}

.el-time-spinner__item.active:not(.disabled) {
	color: rgb(192, 196, 204);
}

.el-time-panel__footer {
	.cancel {
		color: rgb(192, 196, 204);
	}
}

//开关样式
.el-switch__core {
	background: rgba(133, 144, 179, 0.2);
	border: 1px solid #8590b3;
	opacity: 1;
}

.el-switch__core::after {
	opacity: 1;
	background: #8590b3;
}

.el-switch.is-checked .el-switch__core {
	background: rgba(58, 125, 255, 0.2);
	border: 1px solid #3a7dff;
}

.el-switch.is-checked .el-switch__core::after {
	background: #3a7dff;
}

// tree样式
.el-tree {
	background-color: transparent;

	.el-tree-node__label {
		color: rgba(255, 255, 255, 0.7);
	}

	.el-tree-node:focus>.el-tree-node__content {
		background: rgba(255, 255, 255, 0.1);
	}

	.el-tree-node__content:hover {
		background: rgba(255, 255, 255, 0.1);
	}
}

// 折叠面板
.el-collapse {
	border: none;
}

.el-collapse-item__header {
	background-color: transparent;
	color: rgba(255, 255, 255, 0.8);
	border: none;
}

.el-collapse-item__wrap {
	background: #121527;
	border: none;

	.el-collapse-item__content {
		color: rgba(255, 255, 255, 0.8);
	}
}


// 弹窗样式
$--border-color-base: #dcdfe6 !default;
$dialog-bg-color: #191C34;

.el-dialog {
	border-radius: 4px;

	.block-title {
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-bottom: 1px solid $--border-color-base;
		padding-bottom: 14px;
		margin-bottom: 16px;
	}

	.el-dialog__header {
		height: 56px;
		line-height: 56px;
		background: $dialog-bg-color;
		padding: 0 24px;
		// border-radius: 4px 4px 0 0;
		border-radius: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);

		.el-dialog__title {
			font-size: 14px;
			color: $-white;
		}

		.el-dialog__close {
			color: $-white;
		}
	}

	.el-dialog__body {
		padding: 24px 32px;
		background: $dialog-bg-color;
		max-height: 650px;
		overflow-y: auto;
	}

	// 弹窗底部统一边距，背景颜色
	.el-dialog__footer {
		background: $dialog-bg-color;
		// border-radius: 0 0 4px 4px;
		border-radius: 0;
		padding: 24px 24px;
		border-top: 1px solid rgba(255, 255, 255, 0.06);

		.el-button {
			font-family: PingFangSC-Regular;
			font-size: 14px;
			font-weight: normal;
			border: none;

			&:first-child {
				background: rgba(255, 255, 255, 0.25);
				// border: 1px solid #8590b3;
				color: rgba(255, 255, 255, 0.9);
			}

			&:last-child {
				background: #0289F7;
				color: #FFFFFF;
				// border: 1px solid #3a7dff;
			}
		}
	}

	.el-dialog__max {
		width: 960px;
	}

	.el-dialog__medium {
		width: 560px;
	}

	.el-dialog__small {
		width: 450px;
	}
}

// el-dropdown
.el-dropdown {
	font-size: 12px;
	color: rgba(255, 255, 255);
}

.el-dropdown-menu {
	width: 100px;
	background: #191C34 !important;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;

	.el-dropdown-menu__item {
		color: rgba(255, 255, 255);
		font-size: 12px;
	}

	.el-dropdown-menu__item:not(.is-disabled):hover,
	.el-dropdown-menu__item:focus {
		color: rgba(255, 255, 255);
		background: rgba(255, 255, 255, 0.1) !important;
	}
}

// 全局按钮样式
.el-button--text.is-disabled {
	span {
		color: rgba(2, 137, 247, 0.5);
	}
}


// 全局分页样式
.el-pagination {
	white-space: nowrap;
	padding: 2px 5px;
	color: #a0a9c4;
	font-weight: bold;
	text-align: right;

	.el-pager li {
		background-color: transparent;
		font-family: PingFang SC;
		font-size: 12px;
		font-weight: normal;
		letter-spacing: 0em;
		color: rgba(160, 169, 196, 0.7);
	}

	.el-pager li.active {
		background: #3a7dff;
		font-family: PingFang SC;
		font-size: 12px;
		font-weight: normal;
		color: #ffffff !important;
	}

	button:disabled {
		background-color: transparent;
	}

	.btn-prev {
		background-color: transparent;
		color: #a0a9c4;
	}

	.btn-next {
		background: $-v-color-white;
		color: #a0a9c4;
	}

	.el-pagination__total {
		color: #a0a9c4;
	}

	.el-pagination__jump {
		color: #a0a9c4;
	}

	.el-input__inner {
		border: 1px solid #3a404d;
		color: #a0a9c4;
		font-family: PingFang SC;
		font-size: 12px;
		font-weight: normal;
		background: $-v-color-white;
	}
}

// 全局popover样式
.el-popover {
	background: #191C34;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0px 10px 17px 0px rgba(0, 0, 0, 0.3);
	padding: 0px;


	.popper__arrow::after {
		border-bottom-color: #191C34;
	}
}

.el-popper[x-placement^="bottom"] .popper__arrow {
	border-bottom-color: rgba(255, 255, 255, 0.3);
}

.el-popper[x-placement^="bottom"] .popper__arrow::after {
	border-bottom-color: #191C34;
}